package org.mparts.client.activity;

import org.mparts.client.ui.IAddressView;

import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;

public class AddressActivity extends AbstractMpartsActivity implements
		IAddressView.IAddressPresenter {

	private final EventBus eventBus;
	private final IAddressView display;
	private final PlaceController placeController;

	@Inject
	public AddressActivity(EventBus eventBus, IAddressView display,
			PlaceController placeController) {
		this.eventBus = eventBus;
		this.display = display;
		this.placeController = placeController;

	}

	@Override
	public void start(AcceptsOneWidget panel, EventBus eventBus) {
		display.setPresenter(this);
		panel.setWidget(display.asWidget());
	}

}
